package com.rd.student.dashuju.zhengruixian;

import java.util.ArrayList;
import java.util.List;

    public class Suiji {
        public static void main(String[] args) {
            int min = 1;
            int max = 100;
            List list = new ArrayList();
            List list1 = new ArrayList();
            while (list.size() < 10) {
                int num = (int) (Math.random() * (max - min));
                if (num <= 10) {
                    list.add(num);
                }

                    if (num > 10 & num < 100) {
                        list1.add(num);
                    }
                }
                System.out.println(list);
                System.out.println(list1);

            }
        }

